package com.yc.yyds.Bean;

import java.sql.Timestamp;
import java.util.List;

public class Comment {
    private int id; //评论id
    private int userid; //用户id
    private String username; //用户名;
    private int movieid; //电影id
    private Timestamp time;//评论时间
    private String image;
    private String content;//评论内容
    private int pid;//父级评论内容
    private String pname;//被评论人

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    private int dingjiid;//顶级评论内容
    private List<Comment> chirdren; //子评论

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getMovieid() {
        return movieid;
    }

    public void setMovieid(int movieid) {
        this.movieid = movieid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public int getDingjiid() {
        return dingjiid;
    }

    public void setDingjiid(int dingjiid) {
        this.dingjiid = dingjiid;
    }

    public List<Comment> getChirdren() {
        return chirdren;
    }

    public void setChirdren(List<Comment> chirdren) {
        this.chirdren = chirdren;
    }
}
